import { PCTask } from '../types'

/**
 * 检查目标是否存在或需要使用pc
 */
export const useTargetCheck = (task: PCTask, target: RoomObject) => {
    if (!target || (target.effects?.length && target.effects[0].ticksRemaining > 50)) {
        task.done = true
        return false
    }
    return true
}
